/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.meanzoft.minecraft_clone.block2;

/**
 *
 * @author Meanz
 */
public class Block {
    
    public int[] textures;
    public byte blockData;
    public static final int[] masks = new int[]{1, 2, 4, 8, 16, 32, 64, 128};
    
    public Block() {
        blockData = 0;
        textures = new int[6];
        textures[0] = 0;
        textures[1] = 0;
        textures[2] = 0;
        textures[3] = 0;
        textures[4] = 0;
        textures[5] = 0;
    }
    
    public int[] getTextures() {
        return textures;
    }
    
    public void clearBlockData() {
        blockData = 0;
    }
    
    public void setBlockData(int face) {
        blockData |= masks[face];
    }
}
